package com.csy.admin.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author csy
 * @since 2018-09-17
 */
@TableName("resource_url")
public class ResourceUrl extends Model<ResourceUrl> {

    private static final long serialVersionUID = 1L;

    /**
     * url资源id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * url
     */
    private String url;
    /**
     * 资源url描述
     */
    private String memo;
    /**
     * 所属分类
     */
    @TableField("class_id")
    private Integer classId;
    /**
     * 作废标志
     */
    @TableField("flag_invalid")
    private Integer flagInvalid;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public Integer getClassId() {
        return classId;
    }

    public void setClassId(Integer classId) {
        this.classId = classId;
    }

    public Integer getFlagInvalid() {
        return flagInvalid;
    }

    public void setFlagInvalid(Integer flagInvalid) {
        this.flagInvalid = flagInvalid;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ResourceUrl{" +
        ", id=" + id +
        ", url=" + url +
        ", memo=" + memo +
        ", classId=" + classId +
        ", flagInvalid=" + flagInvalid +
        "}";
    }
}
